﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="CarsManage.aspx.cs" Inherits="ServicesSheet_CarsManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster"
                DataMember="Services_SV_Cars">
            </InfoLight:WebDataSource>
            <InfoLight:WebDefault ID="WebDefault1" runat="server" DataMember="Services_SV_Cars"
                DataSourceID="Master">
                <Fields>
                    <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="CarId" />
                </Fields>
            </InfoLight:WebDefault>
            <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" DataMember="Services_SV_Cars"
                DataSourceID="Master" ForeColor="Red" RowCss=""><Fields>
<InfoLight:ValidateFieldItem FieldName="CarName" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="PassengerNum" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="PerKMCost" CheckNull="True"></InfoLight:ValidateFieldItem>
</Fields>
</InfoLight:WebValidate>
<div style="width:100%">
<InfoLight:WebNavigator ID="WebNavigator1" runat="server" BindingObject="wgvMaster"
                Width="100%" StatusStrip="WebStatusStrip1" 
        CssClass="NavigatorBar" CtlHeight="25">
                <NavControls>
                    <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/add_C.gif" MouseOverImageUrl="../image/uipics/add2_C.gif"
                        Size="48"  disenableimageurl="../Image/UIPics/Add3_C.gif"/>
                    <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/apply_C.gif" MouseOverImageUrl="../image/uipics/apply2_C.gif"
                        Size="48"  disenableimageurl="../Image/UIPics/apply3_C.gif"/>
                    <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/abort_C.gif" MouseOverImageUrl="../image/uipics/abort2_C.gif"
                        Size="48"  disenableimageurl="../Image/UIPics/abort3_C.gif"/>
                    <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                        Size="48"  disenableimageurl="../Image/UIPics/query3_C.gif"/>
                </NavControls>
                <NavStates>
                    <InfoLight:WebNavigatorStateItem StateText="Initial" />
                    <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                    <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                    <InfoLight:WebNavigatorStateItem StateText="Editing" />
                    <InfoLight:WebNavigatorStateItem StateText="Applying" />
                    <InfoLight:WebNavigatorStateItem StateText="Changing" />
                    <InfoLight:WebNavigatorStateItem StateText="Querying" />
                    <InfoLight:WebNavigatorStateItem StateText="Printing" />
                </NavStates>
            </InfoLight:WebNavigator>
            </div>
               <InfoLight:WebGridView ID="wgvMaster" runat="server" CellPadding="5" DataSourceID="Master"
            ForeColor="#333333" Width="100%" 
        AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif"
            ApplyIconUrl="../Image/UIPics/Apply.gif" CancelIconUrl="../Image/UIPics/Cancel.gif"
            MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" MouseOverAddIconUrl="../Image/UIPics/Add2.gif"
            MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif"
            MouseOverOKIconUrl="../Image/UIPics/OK2.gif" MouseOverQueryIconUrl="../Image/UIPics/Query2.gif"
            OKIconUrl="../Image/UIPics/OK.gif" 
        QueryIconUrl="../Image/UIPics/Query.gif" HeaderStyleWrap="False"
            BackColor="White" BorderColor="White" BorderStyle="Groove" 
        BorderWidth="2px" PageSize="15">
            <PagerSettings Mode="NumericFirstLast" />
            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
            <NavControls>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif"
                    ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif"
                    ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif"
                    ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif">
                </InfoLight:ControlItem>
            </NavControls>
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <edititemtemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" CommandName="Update" ImageUrl="~/Image/UIPics/OK.gif" CausesValidation="True"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" CommandName="Cancel" ImageUrl="~/Image/UIPics/Cancel.gif" CausesValidation="False"></asp:ImageButton> 
</edititemtemplate>
                    <itemtemplate>
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" CommandName="Edit" ImageUrl="~/Image/UIPics/Edit.gif" CausesValidation="False"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton4" runat="server" Text="Delete" CommandName="Delete" ImageUrl="~/Image/UIPics/icon_delete.gif" CausesValidation="False" ImageAlign="AbsMiddle"></asp:ImageButton> 
</itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="车辆编码" SortExpression="CarId">
                    <edititemtemplate>
<asp:TextBox id="TextBox1" runat="server" Width="100px" Text='<%# Bind("CarId") %>' ReadOnly="True" __designer:wfdid="w408"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox1" runat="server" Width="100px" Text='<%# Bind("CarId") %>' ReadOnly="True" __designer:wfdid="w409"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label1" runat="server" Text='<%# Bind("CarId") %>' __designer:wfdid="w410"></asp:Label>
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="车辆名称" SortExpression="CarName">
                    <edititemtemplate>
<asp:TextBox id="TextBox2" runat="server" Width="150px" Text='<%# Bind("CarName") %>' __designer:wfdid="w405"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox2" runat="server" Width="150px" Text='<%# Bind("CarName") %>' __designer:wfdid="w406"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:TextBox id="TextBox2" runat="server" Width="150px" Text='<%# Bind("CarName") %>' ReadOnly="True" __designer:wfdid="w404"></asp:TextBox> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="最多乘客人数" SortExpression="PassengerNum">
                    <edititemtemplate>
<asp:TextBox id="TextBox3" runat="server" Width="120px" Text='<%# Bind("PassengerNum") %>' __designer:wfdid="w399"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox3" runat="server" Width="120px" Text='<%# Bind("PassengerNum") %>' __designer:wfdid="w400"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:TextBox id="TextBox3" runat="server" Width="120px" Text='<%# Bind("PassengerNum") %>' ReadOnly="True" __designer:wfdid="w398"></asp:TextBox> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="每公里成本" SortExpression="PerKMCost">
                    <edititemtemplate>
<asp:TextBox id="TextBox4" runat="server" Width="120px" Text='<%# Bind("PerKMCost") %>' __designer:wfdid="w402"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox4" runat="server" Width="120px" Text='<%# Bind("PerKMCost") %>' __designer:wfdid="w403"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:TextBox id="TextBox4" runat="server" Width="120px" Text='<%# Bind("PerKMCost") %>' ReadOnly="True" __designer:wfdid="w401"></asp:TextBox> 
</itemtemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle BackColor="#EFF3FB"></RowStyle>
            <EditRowStyle BackColor="#2461BF"></EditRowStyle>
            <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>
            <PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
            <HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>
            <AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
            <AddNewRowControls>
                <InfoLight:AddNewRowControlItem ControlID="TextBox1" ControlType="TextBox" FieldName="CarId" />
                <InfoLight:AddNewRowControlItem ControlID="TextBox2" ControlType="TextBox" FieldName="CarName" />
                <InfoLight:AddNewRowControlItem ControlID="TextBox3" ControlType="TextBox" FieldName="PassengerNum" />
                <InfoLight:AddNewRowControlItem ControlID="TextBox4" ControlType="TextBox" FieldName="PerKMCost" />
            </AddNewRowControls>
        </InfoLight:WebGridView>
</asp:Content>

